import os
import unittest
from cases.Base_Case import BASECASE
from config.config import DATA_PATH
from page.index import IndexPage
from page.门诊医生站.门诊医生站.menzhenyishengzhan__page import menzhenyishengzhan
from page.门诊医生站.门诊医生站.menzhenyishengzhanfuwudengji__page import fuwudengji
from tools.sjqd_way import read_data_from_excel
class TestFuwudengji(BASECASE):
    @classmethod
    def setUpClass(cls):
        ap = IndexPage()
        ap.jrym_no1('门诊医生站')
    @classmethod
    def tearDownClass(cls):
        ap = IndexPage()
        ap.close_all_xxk()
        print("{}执行完毕-------------------------------------------------".format(cls))
    def test_menzhenyishengzhan_fuwudengji(self):
        self.data = read_data_from_excel(os.path.join(DATA_PATH, "datas.xls"), "创建患者")
        fwks,doctor,adress = self.data[0]
        bp = menzhenyishengzhan()
        cp = fuwudengji()
        bp.click_fuwudengji_btn()
        cp.creat_hz(fwks,doctor,adress)#创建患者
if __name__ == '__main__':
    unittest.main()
